<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Time: 16:44
 */
$router->group(['prefix' => '/api', 'namespace' => 'Api', 'middleware' => 'auth.api'], function () use ($router) {
    /**
     * 功能：外部调用
     * 访问地址: POST: /api/api/get_attend
     * 控制器位置: app\Http\Controller\Api\AttendController.php
     */
    $router->get('get_attend', 'AttendController@getAttend');
});

$router->group(['prefix' => '/api', 'namespace' => 'Api'], function () use ($router) {
    /**
     * 功能：外部推送
     * 访问地址: POST: /api/api/receive
     * 控制器位置: app\Http\Controller\Api\AttendController.php
     */
    $router->post('receive', 'AttendController@receive');
});
